<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_i2c.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">结构体</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#enum-members">枚举</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">wb32l003_i2c.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>This file contains all the functions prototypes for the I2C firmware library.  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;wb32l003.h&quot;</code><br />
</div>
<p><a href="wb32l003__i2c_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
结构体</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_i2_c___init_type_def.html">I2C_InitTypeDef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">I2C Initial Configuration Structure definition  <a href="struct_i2_c___init_type_def.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:ga30c25c6585f68df2b8bc1bbe7487cf5d"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_MASTER_MODE_DISABLE</b>&#160;&#160;&#160;((uint32_t)0x00000000U)</td></tr>
<tr class="separator:ga30c25c6585f68df2b8bc1bbe7487cf5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4d3b0995ed1c5d5728137049de3e0211"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_MASTER_MODE_ENABLE</b>&#160;&#160;&#160;((uint32_t)0x00000001U)</td></tr>
<tr class="separator:ga4d3b0995ed1c5d5728137049de3e0211"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacf0e9c7948952c3f3b295d79d882094c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_I2C_MASTER_MODE</b>(MASTER_MODE)</td></tr>
<tr class="separator:gacf0e9c7948952c3f3b295d79d882094c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga771c9b87dc47223dda6084b7e2afe2c0"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_SLAVE_MODE_ENABLE</b>&#160;&#160;&#160;((uint32_t)0x00000000U)</td></tr>
<tr class="separator:ga771c9b87dc47223dda6084b7e2afe2c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf9ce335e6e567fa0de89d79317bdfd06"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_SLAVE_MODE_DISABLE</b>&#160;&#160;&#160;((uint32_t)0x00000001U)</td></tr>
<tr class="separator:gaf9ce335e6e567fa0de89d79317bdfd06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga92542111305e16455118543d9cb76783"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_I2C_SLAVE_MODE</b>(SLAVE_MODE)</td></tr>
<tr class="separator:ga92542111305e16455118543d9cb76783"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae51aafcc8aff3d7a5577bf5c7039e5da"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_BROAD_ACK_ENABLE</b>&#160;&#160;&#160;((uint32_t)0x00000000U)</td></tr>
<tr class="separator:gae51aafcc8aff3d7a5577bf5c7039e5da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaca30343cc5c2a3f3305b8bb8a1a14039"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_BROAD_ACK_DISABLE</b>&#160;&#160;&#160;((uint32_t)0x00000001U)</td></tr>
<tr class="separator:gaca30343cc5c2a3f3305b8bb8a1a14039"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab9d0bd913bef5cae7fde2198e8ba9f22"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_I2C_BROAD_ACK</b>(BROAD_ACK)</td></tr>
<tr class="separator:gab9d0bd913bef5cae7fde2198e8ba9f22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7f35fe114a23558a9a3efb402d3ee123"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_HIGH_RATE_ENABLE</b>&#160;&#160;&#160;((uint32_t)0x00000000U)</td></tr>
<tr class="separator:ga7f35fe114a23558a9a3efb402d3ee123"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabaca966a19d4079a06328fb76f92853d"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_HIGH_RATE_DISABLE</b>&#160;&#160;&#160;I2C_CR_H1M</td></tr>
<tr class="separator:gabaca966a19d4079a06328fb76f92853d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9895ee2d7d8cc8ba4daafafa1c3ce1ac"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_Direction_Transmitter</b>&#160;&#160;&#160;((uint8_t)0x00)</td></tr>
<tr class="separator:ga9895ee2d7d8cc8ba4daafafa1c3ce1ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafe3b9b98552980ca56c8e21a90040fa0"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_Direction_Receiver</b>&#160;&#160;&#160;((uint8_t)0x01)</td></tr>
<tr class="separator:gafe3b9b98552980ca56c8e21a90040fa0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf664bef41d0c290fe46f810c60662062"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_I2C_DIRECTION</b>(I2C_Direction)</td></tr>
<tr class="separator:gaf664bef41d0c290fe46f810c60662062"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga89b219b1db4c6a0af48949c1fe243fdb"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_ERROR_UNDER</b>&#160;&#160;&#160;((uint32_t)0x00000000U)</td></tr>
<tr class="separator:ga89b219b1db4c6a0af48949c1fe243fdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga24cda3d75ce0f8402f1134903614d148"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_USELESS</b>&#160;&#160;&#160;((uint32_t)0x000000F8U)</td></tr>
<tr class="separator:ga24cda3d75ce0f8402f1134903614d148"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga77337373bb1c2cd4d050a04943b2aa68"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_TX_START</b>&#160;&#160;&#160;((uint32_t)0x00000008U)</td></tr>
<tr class="separator:ga77337373bb1c2cd4d050a04943b2aa68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa1fb47aace4ab706a5622a3bb4a2f377"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_TX_RESTART</b>&#160;&#160;&#160;((uint32_t)0x00000010U)</td></tr>
<tr class="separator:gaa1fb47aace4ab706a5622a3bb4a2f377"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9a9045cd083ecfb83f59b2a34b8d172e"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_TX_SLAW_ACK</b>&#160;&#160;&#160;((uint32_t)0x00000018U)</td></tr>
<tr class="separator:ga9a9045cd083ecfb83f59b2a34b8d172e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga880fbea37f9c5626d5c60add56827591"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_TX_SLAW_NOACK</b>&#160;&#160;&#160;((uint32_t)0x00000020U)</td></tr>
<tr class="separator:ga880fbea37f9c5626d5c60add56827591"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5b68e173d374290cd7827e8f8c7d1841"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_TX_DATA_ACK</b>&#160;&#160;&#160;((uint32_t)0x00000028U)</td></tr>
<tr class="separator:ga5b68e173d374290cd7827e8f8c7d1841"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad42f3943afb6cafb99aff11851910ff5"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_TX_DATA_NOACK</b>&#160;&#160;&#160;((uint32_t)0x00000030U)</td></tr>
<tr class="separator:gad42f3943afb6cafb99aff11851910ff5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeacdf1ee58ed40e135300a7f6e151bfa"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_TX_LOST_SCL</b>&#160;&#160;&#160;((uint32_t)0x00000038U)</td></tr>
<tr class="separator:gaeacdf1ee58ed40e135300a7f6e151bfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga16dbdc80a98f04b10a4e15064388db60"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_RX_START</b>&#160;&#160;&#160;((uint32_t)0x00000008U)</td></tr>
<tr class="separator:ga16dbdc80a98f04b10a4e15064388db60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga394200ec08a2e2fe7a3cbe2c1681ba62"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_RX_RESTART</b>&#160;&#160;&#160;((uint32_t)0x00000010U)</td></tr>
<tr class="separator:ga394200ec08a2e2fe7a3cbe2c1681ba62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae3dee68822bd15e67defd9f8e956f3fe"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_RX_SLAW_ACK</b>&#160;&#160;&#160;((uint32_t)0x00000040U)</td></tr>
<tr class="separator:gae3dee68822bd15e67defd9f8e956f3fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac6a2965cc4fd5ed0b443f8e63e233a95"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_RX_SLAW_NOACK</b>&#160;&#160;&#160;((uint32_t)0x00000048U)</td></tr>
<tr class="separator:gac6a2965cc4fd5ed0b443f8e63e233a95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5b334ec406bd6ceaf3e435bd0638388e"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_RX_DATA_ACK</b>&#160;&#160;&#160;((uint32_t)0x00000050U)</td></tr>
<tr class="separator:ga5b334ec406bd6ceaf3e435bd0638388e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga81ab13ee711b433a8075d8291ab217d1"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_RX_DATA_NOACK</b>&#160;&#160;&#160;((uint32_t)0x00000058U)</td></tr>
<tr class="separator:ga81ab13ee711b433a8075d8291ab217d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0be8f24e8fa30fa8c4475b512e6060bb"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_MASTER_RX_LOST_SCL</b>&#160;&#160;&#160;((uint32_t)0x00000038U)</td></tr>
<tr class="separator:ga0be8f24e8fa30fa8c4475b512e6060bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5fcfd854c21c623468963bd1489f6990"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_TX_SLAW_ACK</b>&#160;&#160;&#160;((uint32_t)0x000000A8U)</td></tr>
<tr class="separator:ga5fcfd854c21c623468963bd1489f6990"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2013dc2bd989c91a53bba9a789c5bc55"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_TX_DATA_ACK</b>&#160;&#160;&#160;((uint32_t)0x000000B8U)</td></tr>
<tr class="separator:ga2013dc2bd989c91a53bba9a789c5bc55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1f6c5f1cbfae24c9c3063be04de44c1"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_TX_DATA_NOACK</b>&#160;&#160;&#160;((uint32_t)0x000000C0U)</td></tr>
<tr class="separator:gad1f6c5f1cbfae24c9c3063be04de44c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac6cfa4d641315f5b0b2763546761be9b"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_TX_DATA_LAST</b>&#160;&#160;&#160;((uint32_t)0x000000C8U)</td></tr>
<tr class="separator:gac6cfa4d641315f5b0b2763546761be9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga211d02f4c3d0683f318fc0650dfc30d2"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_TX_LOST_SCL</b>&#160;&#160;&#160;((uint32_t)0x000000B0U)</td></tr>
<tr class="separator:ga211d02f4c3d0683f318fc0650dfc30d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac4afb820706cd89be52303153f2b4c0a"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_RX_SLAW_ACK</b>&#160;&#160;&#160;((uint32_t)0x00000060U)</td></tr>
<tr class="separator:gac4afb820706cd89be52303153f2b4c0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf98c96d98b476ed12a9db6d48a284c1d"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_RX_BROAD_ACK</b>&#160;&#160;&#160;((uint32_t)0x00000070U)</td></tr>
<tr class="separator:gaf98c96d98b476ed12a9db6d48a284c1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae6c6e3e6252a38768cc1c6b572971e7b"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_RX_SDATA_ACK</b>&#160;&#160;&#160;((uint32_t)0x00000080U)</td></tr>
<tr class="separator:gae6c6e3e6252a38768cc1c6b572971e7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga026a35516abb37b5835bbdb3b1b979df"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_RX_SDATA_NOACK</b>&#160;&#160;&#160;((uint32_t)0x00000088U)</td></tr>
<tr class="separator:ga026a35516abb37b5835bbdb3b1b979df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9ec3b9fd94db50058b531e92baa9c294"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_RX_BDATA_ACK</b>&#160;&#160;&#160;((uint32_t)0x00000090U)</td></tr>
<tr class="separator:ga9ec3b9fd94db50058b531e92baa9c294"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5ec71bf3aea9c29e5c421a7d245b0197"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_RX_BDATA_NOACK</b>&#160;&#160;&#160;((uint32_t)0x00000098U)</td></tr>
<tr class="separator:ga5ec71bf3aea9c29e5c421a7d245b0197"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga216c2566e931d909d7fbcbfca724924f"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_RX_SA_LOST_SCL</b>&#160;&#160;&#160;((uint32_t)0x00000068U)</td></tr>
<tr class="separator:ga216c2566e931d909d7fbcbfca724924f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8e5d1a6389d61f9cbe602c280fcf11c6"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_RX_BA_LOST_SCL</b>&#160;&#160;&#160;((uint32_t)0x00000078U)</td></tr>
<tr class="separator:ga8e5d1a6389d61f9cbe602c280fcf11c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa8c399bdf185bbe0745da4d52b501e40"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>I2C_FLAG_SLAVE_STOP_RESTART</b>&#160;&#160;&#160;((uint32_t)0x000000A0U)</td></tr>
<tr class="separator:gaa8c399bdf185bbe0745da4d52b501e40"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:ga9bec282875cd65e00172e875ef785bec"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga9bec282875cd65e00172e875ef785bec">I2CStatus</a> { <a class="el" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca2e4932a1868432bff23103fac0127fdc">I2C_ERROR</a> = 0, 
<a class="el" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785becaeceba296bdda2b90e8835c431fe7a72a">I2C_OK</a> = 1, 
<a class="el" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca955ff83770f8200a0d50d7d69f8b2d06">I2C_SUCCESS</a> = 2, 
<a class="el" href="group___i2_c.html#gga9bec282875cd65e00172e875ef785beca6eba163b622f80d7175b01bef979b24a">I2C_WAITING</a> = 3
 }</td></tr>
<tr class="memdesc:ga9bec282875cd65e00172e875ef785bec"><td class="mdescLeft">&#160;</td><td class="mdescRight">I2CStatus enum definition  <a href="group___i2_c.html#ga9bec282875cd65e00172e875ef785bec">更多...</a><br /></td></tr>
<tr class="separator:ga9bec282875cd65e00172e875ef785bec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga475ebf7c2c0f64e9631fb1ed82d6bb32"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga475ebf7c2c0f64e9631fb1ed82d6bb32">I2C_DeInit</a> (void)</td></tr>
<tr class="memdesc:ga475ebf7c2c0f64e9631fb1ed82d6bb32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the I2C peripheral registers to their default reset values.  <a href="group___i2_c.html#ga475ebf7c2c0f64e9631fb1ed82d6bb32">更多...</a><br /></td></tr>
<tr class="separator:ga475ebf7c2c0f64e9631fb1ed82d6bb32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1b5cee4c873630ae2d38c5301ce6dfef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga1b5cee4c873630ae2d38c5301ce6dfef">I2C_Init</a> (<a class="el" href="struct_i2_c___init_type_def.html">I2C_InitTypeDef</a> *I2C_InitStruct)</td></tr>
<tr class="memdesc:ga1b5cee4c873630ae2d38c5301ce6dfef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the I2C peripheral according to the specified parameters in the I2C_InitStruct.  <a href="group___i2_c.html#ga1b5cee4c873630ae2d38c5301ce6dfef">更多...</a><br /></td></tr>
<tr class="separator:ga1b5cee4c873630ae2d38c5301ce6dfef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9cc0585acf034965b8e1bd7e6564a9d0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga9cc0585acf034965b8e1bd7e6564a9d0">I2C_SlaveAddressConfig</a> (uint32_t SlaveAddress)</td></tr>
<tr class="memdesc:ga9cc0585acf034965b8e1bd7e6564a9d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the I2C slave address.  <a href="group___i2_c.html#ga9cc0585acf034965b8e1bd7e6564a9d0">更多...</a><br /></td></tr>
<tr class="separator:ga9cc0585acf034965b8e1bd7e6564a9d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3764b44c393d3142ff528b3777367181"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga3764b44c393d3142ff528b3777367181">I2C_HighSpeedModeCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga3764b44c393d3142ff528b3777367181"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures I2C high speed mode.  <a href="group___i2_c.html#ga3764b44c393d3142ff528b3777367181">更多...</a><br /></td></tr>
<tr class="separator:ga3764b44c393d3142ff528b3777367181"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga273ed4a9322317b6167a351c5d9c22a6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga273ed4a9322317b6167a351c5d9c22a6">I2C_Start</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga273ed4a9322317b6167a351c5d9c22a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or clears I2C peripheral start status.  <a href="group___i2_c.html#ga273ed4a9322317b6167a351c5d9c22a6">更多...</a><br /></td></tr>
<tr class="separator:ga273ed4a9322317b6167a351c5d9c22a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga967813684e605713eadf012bacb3d6b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga967813684e605713eadf012bacb3d6b5">I2C_Stop</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga967813684e605713eadf012bacb3d6b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or clears I2C peripheral stop status.  <a href="group___i2_c.html#ga967813684e605713eadf012bacb3d6b5">更多...</a><br /></td></tr>
<tr class="separator:ga967813684e605713eadf012bacb3d6b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga51127006ab0941f6cc9b1d4fe77b06c8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga51127006ab0941f6cc9b1d4fe77b06c8">I2C_ACK</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga51127006ab0941f6cc9b1d4fe77b06c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or clears I2C peripheral ACK status.  <a href="group___i2_c.html#ga51127006ab0941f6cc9b1d4fe77b06c8">更多...</a><br /></td></tr>
<tr class="separator:ga51127006ab0941f6cc9b1d4fe77b06c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae696416c6624783e6f3240742a1a474f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#gae696416c6624783e6f3240742a1a474f">I2C_Cmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:gae696416c6624783e6f3240742a1a474f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables I2C peripheral.  <a href="group___i2_c.html#gae696416c6624783e6f3240742a1a474f">更多...</a><br /></td></tr>
<tr class="separator:gae696416c6624783e6f3240742a1a474f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac8fd48b27115ed75fad89fc467c0fc4c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#gac8fd48b27115ed75fad89fc467c0fc4c">I2C_AckGeneralCallCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:gac8fd48b27115ed75fad89fc467c0fc4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the general ack.  <a href="group___i2_c.html#gac8fd48b27115ed75fad89fc467c0fc4c">更多...</a><br /></td></tr>
<tr class="separator:gac8fd48b27115ed75fad89fc467c0fc4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga13a1acbae3361144dcd5c222987f3569"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga13a1acbae3361144dcd5c222987f3569">I2C_ReceiveByte</a> (uint8_t *pData)</td></tr>
<tr class="memdesc:ga13a1acbae3361144dcd5c222987f3569"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads data from data register.  <a href="group___i2_c.html#ga13a1acbae3361144dcd5c222987f3569">更多...</a><br /></td></tr>
<tr class="separator:ga13a1acbae3361144dcd5c222987f3569"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaae912ddb3e54a26e4ec17e35e8ee1858"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#gaae912ddb3e54a26e4ec17e35e8ee1858">I2C_WriteByte</a> (uint8_t I2C_DataCmd)</td></tr>
<tr class="memdesc:gaae912ddb3e54a26e4ec17e35e8ee1858"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write one byte data.  <a href="group___i2_c.html#gaae912ddb3e54a26e4ec17e35e8ee1858">更多...</a><br /></td></tr>
<tr class="separator:gaae912ddb3e54a26e4ec17e35e8ee1858"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9bfdf853316172ce00fd5745847c83c9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga9bfdf853316172ce00fd5745847c83c9">I2C_WriteAddress</a> (uint8_t Address, uint8_t I2C_Direction)</td></tr>
<tr class="memdesc:ga9bfdf853316172ce00fd5745847c83c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the slave address byte by the direction.  <a href="group___i2_c.html#ga9bfdf853316172ce00fd5745847c83c9">更多...</a><br /></td></tr>
<tr class="separator:ga9bfdf853316172ce00fd5745847c83c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga65c074c0c585882e5f469f49c98f1bac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___i2_c.html#ga9bec282875cd65e00172e875ef785bec">I2CStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga65c074c0c585882e5f469f49c98f1bac">I2C_CheckFlag</a> (uint32_t *I2C_Flag)</td></tr>
<tr class="memdesc:ga65c074c0c585882e5f469f49c98f1bac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the last I2C module status flag.  <a href="group___i2_c.html#ga65c074c0c585882e5f469f49c98f1bac">更多...</a><br /></td></tr>
<tr class="separator:ga65c074c0c585882e5f469f49c98f1bac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga969097bd9d6c5dc41289093f4af6526c"><td class="memItemLeft" align="right" valign="top">ITStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga969097bd9d6c5dc41289093f4af6526c">I2C_GetITStatus</a> (void)</td></tr>
<tr class="memdesc:ga969097bd9d6c5dc41289093f4af6526c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether I2C interrupt has occurred or not.  <a href="group___i2_c.html#ga969097bd9d6c5dc41289093f4af6526c">更多...</a><br /></td></tr>
<tr class="separator:ga969097bd9d6c5dc41289093f4af6526c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga92a27b9faaa5d38b47971b39e43a9411"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c.html#ga92a27b9faaa5d38b47971b39e43a9411">I2C_ClearITPendingBit</a> (void)</td></tr>
<tr class="memdesc:ga92a27b9faaa5d38b47971b39e43a9411"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears I2C interrupt pending bit.  <a href="group___i2_c.html#ga92a27b9faaa5d38b47971b39e43a9411">更多...</a><br /></td></tr>
<tr class="separator:ga92a27b9faaa5d38b47971b39e43a9411"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>This file contains all the functions prototypes for the I2C firmware library. </p>
<dl class="section author"><dt>作者</dt><dd>Westberry Application Team </dd></dl>
<dl class="section version"><dt>版本</dt><dd>V0.0.3 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>12-April-2023 </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
